﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Model;
using DAL;
using System.Data.SqlClient;
namespace BLL
{
    public  class Basic_InfoBLL
    {
        /// <summary>
        /// 根据项目编号多表联查
        /// </summary>
        /// <param name="basc"></param>
        /// <returns></returns>
        public List<Basic_Info> GetBasicShow(Basic_Info basc)
        {
            return new Basic_InfoDAL().Basic_InfoGetLiXiang(basc);
        }
        public bool AddBasic(params SqlParameter[] parmer)
        {
            Basic_Info info = new Basic_Info();
            return new Basic_InfoDAL().Add(info,parmer);
        }
        public bool UpdateStartTime(Basic_Info ba)
        {
            return new Basic_InfoDAL().UpdateStartTime(ba);
        }
        public bool UpdateEndTime(Basic_Info ba)
        {
            return new Basic_InfoDAL().UpdateEndTime(ba);
        }
        public bool UpdateState(Basic_Info ba) 
        {
            return new Basic_InfoDAL().UpdateState(ba);
        }
        public Basic_Info GetBasicListById( params SqlParameter[] param )
        {
            return new Basic_InfoDAL().GetList<Basic_Info>(param).FirstOrDefault();
        }
        public bool UpdateBasic(params SqlParameter[] par)
        {
            Basic_Info basc = new Basic_Info();
            return new Basic_InfoDAL().Update(basc,par);
        }
        
    }
}
